
const lib_upload = require("../lib/upload");
const lib_getTask = require("../lib/get_tasks");
const path = require("path");
const Worktile = require("lib-worktile/lib").web.WorktileWeb;
const OurDownloader = require("../lib/Downloader").Downloader;
process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = 0;

 
let tupianBelow2GB = "5dd90d27fcef454e79ffabf1";
let qurenwu2 = "5dda18fac2826a53436b6f73";//更新时间倒序
let listForJackySuperPc = "5e03abf344fd075b2c98534f"

let d = new OurDownloader(tupianBelow2GB, 12, 4,false, 0);
// d.__loop_add_tasks();
/*
Worktile.getValidWorktileInstance("hujimiya","1043534506@qq.com","work**233").then(async op=>{
    let wt = op.instance;
    let o_tasks = await lib_getTask.getTasksByViewID(wt,'5c348d5cd59d78524e093352',2);
    debugger
})
*/
d.on("warning", (a, b) => {
    debugger
})





// lib_arc.tarDir(path.join(__dirname, '../lib/'), path.join(__dirname, '../mnt/arc/123/456.tar')).then(async o => {
//     let up_dir = path.dirname(o.data.tar_path);
//     let o_up_tuniu = await lib_upload.uploadDirToTuniu(path.join(__dirname, '../mnt/arc'), true);
//     debugger
// })
